<?php
/* @var $this EntryController */
/* @var $model Entry */
/* @var $form CActiveForm */
?>
<?php
$this->breadcrumbs=array(
	'Entries'=>array('index'),
	'Report-SetDate',
);

$this->menu=array(
	//array('label'=>'List Entry', 'url'=>array('index')),
	array('label'=>'Manage Entry', 'url'=>array('admin')),
);


?>
<h1> Generate Monthly Entry Report </h1>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'entry-form',
	   'enableClientValidation'=>true,
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

<div class="row buttons">
		<?php echo $form->labelEx($model,'Select Month/Year'); ?>

		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'code',
   'name'=>'datepicker-month-year-menu',
  // 'flat'=>true,//remove to hide the datepicker
    'options'=>array(
        'dateFormat' => 'yy-mm',
        'showAnim'=>'slide',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
        'changeMonth'=>true,
        'changeYear'=>true,
        'yearRange'=>'2000:2099',
     //   'minDate' => '2000-01-01',      // minimum date
    //    'maxDate' => '2099-12-31',      // maximum date
    ),
    'htmlOptions'=>array(
        'style'=>''
    ),
));		?>
</div>
<br>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Search' : 'Search'); ?>
	</div>
	
	<?php
		require_once 'Mobile_Detect.php';
	
	

			$detect = new Mobile_Detect;

		if ($detect->isMobile() ) {
		echo'<p> MOBILE </p>';
		}
			?>

<?php $this->endWidget(); ?>

</div><!-- form -->

